package sync.demo04;

/**
 * 死锁2 - 多线程之间抱有对方需要的锁，彼此之间不释放
 *
 * @author lwj
 * @date 2025-03-13
 * @vesion 1.0.0
 */
public class MainTest {
    public static void main(String[] args) {
        OneThread oneThread = new OneThread();
        TwoThread twoThread = new TwoThread();

        // 启动线程
        oneThread.start();
        twoThread.start();
        System.out.println("主线程...");
    }
}
